import styled from 'styled-components'


export const HeaderBox = styled.div`
  height: 52px;
  box-shadow: 0 1px 3px rgba(26,26,26,.1);
  z-index: 999;
  position: sticky;
  top: 0;
  overflow: hidden;
`
export const HeaderWrapper = styled.div`
  height: 104px;
  background: #fff;
  transition: all ease .3s;
  /* transform: translateY(-52px) */
`

export const HeaderContent = styled.div`
  position: relative;
  width: 1000px;
  height: 52px;
  line-height: 52px;
  padding: 0 16px;
  margin: 0 auto;
  .logo {
    color: #0084ff;
    font-size: 40px;
    padding-right: 20px;
    float: left;
  }
`

export const OtherHeaderContent = styled.div`
  position: relative;
  width: 1000px;
  height: 52px;
  padding: 0 16px;
  margin: 0 auto;
  .logo {
    color: #0084ff;
    font-size: 40px;
    padding-right: 20px;
    float: left;
  }
  .logo-s {
    color: #0084ff;
    font-size: 40px;
    padding-top: 5px;
    padding-right: 20px;
    float: left;
  }
`

export const HeaderNav = styled.div`
  line-height: 52px;
  .active {
    color: #444444 !important;
    font-weight: bold;
    border-bottom: 2px solid #0084ff;
  }
  .nav-item {
    height: 50px;
    float: left;
    color: #8590a6;
    font-size: 15px;
    margin: 0 17px;
    cursor: pointer;
    text-decoration: none;
    &:hover {
      color: #444444;
    }
  }
  .active-s {
    color: #0084ff;
  }
`

export const NavItem = styled.div`
  height: 50px;
  float: left;
  color: #8590a6;
  font-size: 15px;
  margin: 0 17px;
  cursor: pointer;
`

export const SearchWrapper = styled.div`
  position: relative;
  float: left;
  .search {
    position: absolute;
    right: 10px;
    color: #8590a6;
    font-size: 18px;
  }
  .icon-focused {
    color: #0084ff;
  }
  &.search-s {
    float: right;
  }
`

export const HeaderSearch = styled.input.attrs({
  placeholder: '那些很丧的句子'
})`
  width: 326px;
  height: 24px;
  margin-top: 8px;
  border: 1px solid #ddd;
  outline: none;
  background: #f6f6f6;
  margin-left: 30px;
  padding: 4px 0 4px 12px;
  border-radius: 3px;
  transition: all .4s ease-out;
  &.focused {
    width: 400px;
    transition: all .4s ease-out;
  }
`

export const SearchButton = styled.div`
  width: 42px;
  height: 25px;
  line-height: 24px;
  padding: 4px 10px;
  margin-left: 16px;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  border-radius: 2px;
  background: #0084ff;
  color: #fff;
  float: left;
  &.appear {
    display: none;
    transition: all .4s ease-out;
  }
  &.btn-s {
    float: right;
  }
`

export const MessageInfo = styled.div`
  color: #8590a6;
  position: absolute;
  right: 0;
  .iconfont {
    font-size: 20px;
    padding: 0 20px;
  }
`

export const OtherSearchWrapper = styled.input.attrs({
  placeholder: '搜索你感兴趣的内容...'
})`
  float: right;
  width: 216;
  height: 24px;
  margin-top: 8px;
  border: 1px solid #ddd;
  outline: none;
  background: #f6f6f6;
  margin-left: 30px;
  padding: 4px 0 4px 12px;
  border-radius: 3px;
  transition: all .4s ease-out;
  &.focused {
    width: 400px;
    transition: all .4s ease-out;
  }
`